package strategy.impl;

import javax.annotation.PostConstruct;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import strategy.PayStrategyContext;
import strategy.PayStrategyService;

@Service
public class KQPayStrategyService implements PayStrategyService{
	
	private static final Logger LOGGER = LoggerFactory.getLogger(KQPayStrategyService.class);
	
	@Override
	public Object openAccount() {
		LOGGER.info("快钱支付-openAccount");
		return null;
	}

	@Override
	public Object pay() {
		LOGGER.info("快钱支付-pay");
		return null;
	}

	@Override
	public Object getPayResult() {
		LOGGER.info("快钱支付-getPayResult");
		return null;
	}

	@Override
	public String getStrategyName() {
		return "KQ_PAY";
	}
	
	@PostConstruct
	public void postConstruct(){
		LOGGER.info("快钱支付<KQPayStrategyService>-init");
		PayStrategyContext.put(getStrategyName(), this);
	}

}
